import { useNavigate } from "react-router-dom"

export default function UseInfiniteDataPath() {
  const navigate = useNavigate()
  return (
    <div>
      <h4>纵向滚动值hook</h4>
      <button onClick={() => navigate("/PageC")}>PageC</button>
      <button onClick={() => navigate("/PageD")}>PageD</button>
    </div>
  )
}
